package com.aptech.bean;

import java.util.Date;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 邮件信息表
 */

public class Mails {
	//id
	private int id;
	
	//发件人
	private int send;
	
	//收件人
	private int receive;
	
	//邮件标题
	private String title;
	
	//邮件内容
	private String content;
	
	//附件
	private List attachment;
	
	//是否已读
	private boolean whether;
	
	//发送时间
	private Date sendTime;
	
	//是否删除
	private boolean remove;


	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSend() {
		return send;
	}

	public void setSend(int send) {
		this.send = send;
	}

	public int getReceive() {
		return receive;
	}

	public void setReceive(int receive) {
		this.receive = receive;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public List getAttachment() {
		return attachment;
	}

	public void setAttachment(List attachment) {
		this.attachment = attachment;
	}

	public boolean isWhether() {
		return whether;
	}

	public void setWhether(boolean whether) {
		this.whether = whether;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public boolean isRemove() {
		return remove;
	}

	public void setRemove(boolean remove) {
		this.remove = remove;
	}

	@Override
	public String toString() {
		return "Mails [id=" + id + ", send=" + send + ", receive=" + receive + ", title=" + title + ", content="
				+ content + ", attachment=" + attachment + ", whether=" + whether + ", sendTime=" + sendTime
				+ ", remove=" + remove + "]";
	}
	
	
}
